package com.zy.algorithm.v2.bean;

import java.util.ArrayList;
import java.util.List;

public class HeapSimpleNode extends SimpleNode {
    boolean change;

    int changeFIndex;
    int changeSIndex;

    int[] stepStart; //本次操作前

    List<Integer> sortedIndexStart = new ArrayList<>();
    List<Integer> sortedIndexEnd = new ArrayList<>();

    public boolean isChange() {
        return change;
    }

    public void setChange(boolean change) {
        this.change = change;
    }

    public int getChangeFIndex() {
        return changeFIndex;
    }

    public void setChangeFIndex(int changeFIndex) {
        this.changeFIndex = changeFIndex;
    }

    public int getChangeSIndex() {
        return changeSIndex;
    }

    public void setChangeSIndex(int changeSIndex) {
        this.changeSIndex = changeSIndex;
    }

    public int[] getStepStart() {
        return stepStart;
    }

    public void setStepStart(int[] stepStart) {
        this.stepStart = stepStart;
    }

    public List<Integer> getSortedIndexStart() {
        return sortedIndexStart;
    }

    public void setSortedIndexStart(List<Integer> sortedIndexStart) {
        this.sortedIndexStart.addAll(sortedIndexStart);
    }

    public List<Integer> getSortedIndexEnd() {
        return sortedIndexEnd;
    }

    public void setSortedIndexEnd(List<Integer> sortedIndexEnd) {
        this.sortedIndexEnd.addAll(sortedIndexEnd);
    }
}
